package com.wicket.okrapp.web.contorller;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.biz.service.EvaTempEvaSetService;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/evaTempEvaSet/")
public class EvaTempEvaSetController {
    @Autowired
    EvaTempEvaSetService  evaTempEvaSetService;
/**
   * D3-查询评价人权重设置明细列表(公共)
   */
    @PostMapping("queryAppraiserWsetDetailListCom")
    public OkrResult<QueryAppraiserWsetDetailListComRespDto> queryAppraiserWsetDetailListCom(@RequestBody @Validated QueryAppraiserWsetDetailListComReqDto reqDTO){
    return OkrResult.success(evaTempEvaSetService.queryAppraiserWsetDetailListCom(reqDTO));
    }
/**
   * D3-3新增评价模板评价设置(公共)
   */
    @PostMapping("addEvaTempEvaSetCom")
    public OkrResult<AddEvaTempEvaSetComRespDto> addEvaTempEvaSetCom(@RequestBody @Validated AddEvaTempEvaSetComReqDto reqDTO){
    return OkrResult.success(evaTempEvaSetService.addEvaTempEvaSetCom(reqDTO));
    }
}
  